$("#adtvmadd").click(function () {
    var reason = $(".reason").val();//审核内容
    var status=$('input:radio[name="status"]:checked').val();//审核状态
    var id = $("input[name='id']").val();
    if(status==2){
        if(reason==''||reason==undefined){
            dshow("审核内容不能为空");
            return false;
        }
    }
    if(status==''||status==undefined){
        dshow("审核状态不能为空");
        return false;
    }
    if(id==''){
        return false;
    }

    $.ajax({
        url: '/withdrawals/examine',
        type: 'POST',
        data: {reason:reason,status:status,id:id},
        dataType: 'JSON',
        cache: false,
        success: function (data) {
            if (data.code == 2000) {
                dshow(data.message);
                window.location.href = '/withdrawals';
            } else {
                // console.log(222222); return false;
                 dshow(data.message);
                window.location.href = '/withdrawals';
            }
        }
    });
});

$("#adtvmout").click(function () {
    window.location.href = '/withdrawals';
});